import { mapGetters } from 'vuex'
export default {
  computed: {
    ...mapGetters([
      'windowResizeTag'
    ])
  },
  watch: {
    windowResizeTag() {
      this.$nextTick(() => {
        if (document.getElementsByClassName('user_container').length > 0) {
          this.parent.tableHeight = document.getElementsByClassName('main_main')[0].clientHeight -
            document.getElementsByClassName('SearchBar_main')[0].clientHeight - 120
        } else {
          if (document.getElementsByClassName('main_main').length > 0 && document.getElementsByClassName('main_main')[0].clientHeight > 0) {
            if (document.getElementsByClassName('SearchBar_main').length > 0 && document.getElementsByClassName('SearchBar_main')[0].clientHeight > 0) {
              this.parent.tableHeight = document.getElementsByClassName('main_main')[0].clientHeight -
                document.getElementsByClassName('SearchBar_main')[0].clientHeight -
                document.getElementsByClassName('main_bottom')[0].clientHeight +
                20
            }
          }
        }
      })
    }
  },
  data() {
    return {
    }
  },
  mounted() {
    console.log('mixin success')
  },
  methods: {
  }
}
